package com.lagou.sqlSession;

import com.lagou.pojo.MappedStatement;

import java.sql.SQLException;
import java.util.List;

public interface Executor {

    public <E> List<E> query(MappedStatement mappedStatement,Object... params) throws Exception;

    //user
    int update(MappedStatement mappedStatement, Object... params) throws Exception;

    void commit() throws SQLException;

    void rollback() throws SQLException;

    void close() throws SQLException;
}
